import request from '@/utils/request'

export default {
  uploadVideo(file) {
    return request({
      url: `/vod/upload`,
      method: 'post',
      data: {
        file
      }
    })
  },
  deleteVideo(videoId) {
    return request({
      url: `/vod/delete/${videoId}`,
      method: 'post'
    })
  },
  deleteBatch(videoIdList) {
    return request({
      url: `/vod/deleteBatch/${videoIdList}`,
      method: 'delete',

    })
  },
  getPlayInfo(videoId) {
    return request({
      url: `/vod/getPlayInfo/${videoId}`,
      method: 'get'
    })
  },
  getPlayAuth(videoId) {
    return request({
      url: `/vod/getPlayAuth/${videoId}`,
      method: 'get'
    })
  },
}
